package com.bamboo.pistorage.config;

import com.bamboo.pistorage.provider.IFileCheckerProvider;
import com.bamboo.pistorage.provider.file.DefaultFileCheckerProvider;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
* @description 
* @date 2025/4/3 下午3:44
* @author chenzh
*/
@Configuration
public class BeanConfig {

    @ConditionalOnMissingBean({ IFileCheckerProvider.class })
    @Bean
    public IFileCheckerProvider defaultFileCheckerProvider() {
        return new DefaultFileCheckerProvider();
    }
}
